<template>
    <vue-markdown :source="intro"></vue-markdown>
</template>

<script>
import { mapActions } from 'vuex';
import VueMarkdown from 'vue-markdown'
export default {
    components:{
        VueMarkdown
    },
    data(){
        return{
            intro:""
        }
    },
    methods:{
        ...mapActions(['XgetOne'])
    },
    mounted(){
        this.XgetOne(this.$route.params.id).then(res => {
            this.intro = res.data.description;
        })
    }
}
</script>

<style lang="scss" scoped>
    
</style>
